<!-- Begin SLIDER -->
<?php 
use_stylesheet('library/css/nivo-slider', '', array('media'=> 'all'));
use_javascript('/css/library/js/jquery.nivo.slider.pack.js?ver=3.9.1');

 


If($slides->count()>0):?>
<div id="slider" >
		<?php
		foreach ($slides as $slide):		?>
		
        			<a href="<?php echo url_for('service_show' ,$slide,true) ?>">
        			<img src="<?php echo '/imgThumb.php?s=960&mod='.$mod.'&im='.$slide->getImage(); ?>"  
        				alt="<?php echo $slide->getTitle() ?>" 
        				title="<?php echo $slide->getTitle() ?>" />

        			</a>

        <?php endforeach; ?>
        		
</div>


        	  <!-- SLIDER SETTINGS -->

    	   <script type="text/javascript">
				$j = jQuery.noConflict();
                
    			$j(window).load(function() {

					
    				$j('#slider').nivoSlider({

    					effect:'random',

    					slices:15,

    					animSpeed:500,

    					pauseTime:3000,

    					startSlide:0, //Set starting Slide (0 index)

    					directionNav:true, //Next &amp; Prev

    					directionNavHide:true, //Only show on hover

    					controlNav:true, //1,2,3...

    					controlNavThumbs:false, //Use thumbnails for Control Nav

    					controlNavThumbsFromRel:false, //Use image rel for thumbs

    					controlNavThumbsSearch: '.jpg', //Replace this with...

    					controlNavThumbsReplace: '_thumb.jpg', //...this in thumb Image src

    					keyboardNav:true, //Use left &amp; right arrows

    					pauseOnHover:true, //Stop animation while hovering

    					manualAdvance:false, //Force manual transitions

    					captionOpacity:0.8, //Universal caption opacity

    					beforeChange: function(){},

    					afterChange: function(){},

    					slideshowEnd: function(){} //Triggers after all slides have been shown

    				});

    			});/**/

    			</script>
<?php endif; ?>
    	   <!-- END SLIDER -->    
